package com.xb.cloud.common.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AliOssConfig {

	@Value("${endpoint}")
	public   void setEndpoint(String endpoint) {
		AliOssConfig.endpoint = endpoint;
	}
	@Value("${accessKeyId}")
	public   void setAccessKeyId(String accessKeyId) {
		AliOssConfig.accessKeyId = accessKeyId;
	}
	@Value("${accessKeySecret}")
	public   void setAccessKeySecret(String accessKeySecret) {
		AliOssConfig.accessKeySecret = accessKeySecret;
	}
	@Value("${bucketName}")
	public   void setBucketName(String bucketName) {
		AliOssConfig.bucketName = bucketName;
	}
	@Value("${bucketUrl}")
	public   void setBucketUrl(String bucketUrl) {
		AliOssConfig.bucketUrl = bucketUrl;
	}
	 
	
	public static String endpoint = "xx";
	// 返回格式
	public static String accessKeyId = "json";
	// 支付宝公钥
	public static String accessKeySecret = "";
	// 日志记录目录
	public static String bucketName = "/log";
	// RSA2
	public static String bucketUrl = "RSA2";

}
